package kz.kstu.ds.run;

import com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel;
import kz.kstu.ds.main.AuthCenterFrame;
import kz.kstu.ds.utils.GUIUtils;

import javax.swing.*;

/**
 * Date: 03.11.12
 * Time: 21:13
 *
 * @author Oleg Anastassov
 */
public class AuthCenterRunner {

    public AuthCenterRunner() {
    }

    public static void main(String[] args) {
        AuthCenterRunner runner = new AuthCenterRunner();
        runner.run();
    }

    private void run() {
        try {
            UIManager.setLookAndFeel(new NimbusLookAndFeel());
        } catch (UnsupportedLookAndFeelException ignored) {
        }
        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                GUIUtils.centerAndShow(new AuthCenterFrame());
            }
        };
        SwingUtilities.invokeLater(runnable);
    }

}
